home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / util / boot / SuperPass20b.lha / Install_SuperPass < prev    next >
Text File  |  1995-06-20  |  3KB  |  107 lines

  1. ; SuperPass 2.0b Installer script
  2. ; $VER: SuperPass 2.0b (6/15/95)
  3. ;
  4. ; Check that the C: directory exists
  5. (if (NOT (exists "c:"))
  6. (
  7.   (abort "Can't find the c: directory")
  8. ))
  9.  
  10. ; Copy the executables to it
  11. (copyfiles
  12.   (prompt "")
  13.   (help @copyfiles-help)
  14.   (source "SuperPass")
  15.   (dest "c:"))
  16. (copyfiles
  17.   (prompt "")
  18.   (source "SuperPass_install")
  19.   (dest "c:"))
  20. (run (cat "lzx -m x reboot.lzx ram:" ))
  21. (copyfiles
  22.   (prompt "")
  23.   (source "ram:reboot")
  24.   (dest "c:"))
  25.  
  26. ; Find out what sort of installation this is
  27. (set choice (askchoice
  28.   (prompt "Would you like to run the installation utility now?")
  29.   (choices "Yes, run it now!" "No, I'll do it later.")
  30.   (help
  31.     (cat "The installation utility will allow you to configure and set up "
  32.          "SuperPass 2.0.  It is strongly recommended that you run it NOW! "
  33.         "\n\nIf you choose to run the install utility, the password file "
  34.          "you should use, unless you know what you're doing, is s:jdw.passwords."
  35.     ))
  36. ))
  37.  
  38. (if (= choice 0)
  39. (
  40.   ; run it now!
  41.   (if (NOT (exists "c:superpass_install"))
  42.   (
  43.     (abort "Can't find the Install utility!")
  44.   ))
  45.  
  46.   (textfile (dest "t:temp.s")
  47.     (append (cat "superpass_install -p\n"
  48.                  "endcli\n")))
  49.  
  50.   (run (cat "newcli from t:temp.s" ))
  51.   (run (cat "delete t:temp.s" ))
  52. ))
  53.  
  54. ; Manual installation
  55. ; Now ask for tried and config file
  56. (set tries (askstring
  57.   (prompt "Please enter the number of tries before restart:")
  58.   (default "3")
  59.   (help
  60.     (cat "This number will be used in the arguments added to the startup "
  61.          "files in order to determine the number of tries the user gets "
  62.          "before rebooting the computer."
  63.     ))
  64. ))
  65. (set pwfile (askstring
  66.     (prompt "Please enter the password file you wish to use here:")
  67.     (default "s:jdw.passwords")
  68.     (help
  69.         (cat "The filename you enter here should be the filename you entered "
  70.                "in the installation utility.  If you did not run the installation "
  71.                "utility yet, please use the filename of your choice and enter it "
  72.                "into the utility when you run it."
  73.     ))
  74. ))
  75.  
  76. ; If a try and pwfile was selected, put it in the user-startup file
  77. (startup "SuperPass"
  78.   (prompt "Do you want to add the lines needed to your user-startup?")
  79.   (help
  80.     (cat "You are advised to add the lines in order to simplify the "
  81.          "installation process."
  82.   ))
  83.   (command "c:SuperPass -t"tries" -f"pwfile)
  84. )
  85.  
  86. ; Now exit, telling them what the situation is
  87. (if (= choice 0)
  88. (
  89.   ; Installation was run
  90.   (exit
  91.     (cat "You will have to reboot the system before you can use the "
  92.          "program.\n\nDon't forget to read the dox from the REBOOT "
  93.          "package!  They're in your RAM: directory right now!"
  94.   ))
  95. )
  96. (
  97.   ; Installation was manual
  98.   (exit
  99.     (cat "You have elected to run the installation utility at a later time. "
  100.          "You should run it immediately after finishing this, and you must "
  101.          "run it BEFORE rebooting your machine.\n\nDon't forget to read the "
  102.          "dox from the REBOOT package!  They're sitting in your RAM: "
  103.          "directory right now!"
  104.   ))
  105. ))
  106.  
  107.